package cn.hairui.fastms.core.bean;

import cn.hairui.fastms.core.annotation.Dict;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 系统参数配置
 * </p>
 *
 * @author lihairui
 * @since 2020-12-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SConfig对象", description = "系统参数配置")
public class SConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "CFG_ID", type = IdType.AUTO)
    private Integer cfgId;

    @ApiModelProperty(value = "参数代码")
    @TableField("CFG_KEY")
    private String cfgKey;

    @ApiModelProperty(value = "参数值")
    @TableField("CFG_VALUE")
    private String cfgValue;

    @ApiModelProperty(value = "参数含义")
    @TableField("CFG_NAME")
    private String cfgName;

    @ApiModelProperty(value = "状态")
    @TableField("CFG_STS")
    @Dict(dictCode = "ZB_EFFECT_STATUS")
    private String cfgSts;

    @ApiModelProperty(value = "参数块名称")
    @TableField("PARAM_BLOCK")
    private String paramBlock;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATE_USER")
    private String updateUser;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private String updateTime;


}
